#ifndef __DELAY_H_
#define __DELAY_H_

#include "main.h"

void delay_us(uint32_t xus);
void delay_ms(uint32_t xms);
extern inline void get_ms(uint32_t *ms);
extern inline uint32_t get_ms2(void);
uint32_t time_to_time(uint32_t old_tick, uint32_t new_tick);
uint32_t time_to_now(uint32_t old_tick);
#endif /*__DELAY_H_"*/